﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
using Volo.Abp.MultiTenancy;

namespace Himp.Platform.Dc
{
    /// <summary>
    /// 患者就诊信息
    /// </summary>
    [Table("PATN_MDTRT_INFO")]
    public class PatnMdtrtInfo : AuditedAggregateRoot<Guid>, IMultiTenant
    {
        /// <summary>
        /// 
        /// </summary>
        public PatnMasterIdx PatnMasterIdx { get; set; }

        /// <summary>
        /// 门诊号
        /// </summary>
        [Column("OTP_NO")]
        public string OtpNo { get; private set; }

        /// <summary>
        /// 住院号
        /// </summary>
        [Column("IPT_NO")]
        public string? IptNo { get; private set; }

        /// <summary>
        /// 病案号
        /// </summary>
        [Column("MEDCASNO")]
        public string? Medcasno { get; private set; }

        //// <summary>
        /// 健康档案标识号
        /// </summary>
        [Column("HLTH_REC_ID")]
        public string? HlthRecId { get; set; }

        //// <summary>
        /// 居民健康卡号
        /// </summary>
        [Column("RST_HLTH_CARDNO")]
        public string? RstHlthCardno { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public Guid? TenantId { get; set; }
    }
}
